/**
 * 
 */
package com.androiddev.stoppa;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;

/**
 * @author M.Dongo
 * 
 */
public class SplashStoppa extends Activity {

	private Handler handler = new Handler();

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.splash);

		// run a thread after 2 seconds to start the home screen
		handler.postDelayed(new Runnable() {

			@Override
			public void run() {

				// make sure we close the splash screen so the user won't come
				// back when it presses back key

				finish();
				// start the home screen

				Intent intent = new Intent(SplashStoppa.this,
						MainMenuActivity.class);
				SplashStoppa.this.startActivity(intent);

			}

		}, 2000);
	}
}
